<div class="row header">
	<div class="col-lg-7">
		<div class="row">
			<div class="col-lg-3">
				<img alt="phpblog" src="images/phpninja.png" width="138"
					height="160">
			</div>
			<div class="col-lg-7">
				<span class="texto-comentario">
					// Artigos e tutorias que auxiliam os desenvolvedores.
				</span>
				<br /> 
				<span class="text-logo">
					   <span class="caracter">$</span>blogPhp<span class="caracter">-></span>run<span class="caracter">();</span>
				</span>
			</div>
		</div>
	</div>
	<?php if(!isset($_SESSION['user']) or ($_SESSION['user'] == "")){?>
		<div class="col-lg-5 login-panel">
		<div class="row">
			<form action="./seguranca/logar.php" method="POST">
				<div class="col-lg-5">
					<input class="form-control" type="text" placeholder="Usuário"
						name="username" id="username" />
				</div>
				<div class="col-lg-4">
					<input class="form-control" type="password" placeholder="Senha"
						name="password" id="password" />
				</div>
				<div class="col-lg-3">
					<input type="submit" class="form-control btn btn-primary"
						value="Entrar" />
				</div>
			</form>
		</div>
		<div class="row" style="margin-top: 10px;">
			<div class="col-lg-6">
				<a class="btn btn-success" href="index.php?pag=cadastro">Cadastre-se aqui <span class="glyphicon glyphicon-ok"></span></a>
			</div>
			<div class="col-lg-6 text-right">
				<a href="index.php?pag=senha">Esquece minha senha</a>
			</div>
		</div>
		</div>
		<?php }else{?>
		<div class="col-lg-5 logado-panel">
		<div class="row">
			<div class="col-lg-9">
				<h2><small>Ola!</small>
				<?php echo  $_SESSION['user_nome'];?></h2>
			</div>
			<div class="col-lg-3">
				<a class="btn btn-danger" href="./seguranca/logout.php"> <span class="glyphicon glyphicon-off"></span> Sair</a>
			</div>
		</div>
			</div>
		<?php }?>
</div>
